import Vue from 'vue'
import Vuex from 'vuex'
import getters from "./getters/getter"
import mutations from './mutaions/mutaion'
import actions from './actions/action'
Vue.use(Vuex)
const state = {
  //user_info
  user_info:null,
  //下变得btn 切换状态
  footer_menu_list:
  {
      0: {text: "入库", sign_c: true, sign: 0, icon_path: "/static/sprites/in_icon.png", url_name: 'InPage'},
      1: {text: '出库', sign_c: false, sign: 1, icon_path: "/static/sprites/out_icon.png", url_name: 'OutPage'},
      2: {text: '管理', sign_c: false, sign: 2, icon_path: "/static/sprites/ma.png", url_name: 'ManagePage'}
  },
  BottomBtn_pre_click_id: 0,
  bottom_btn:{},//入库页的bottom btn
  in_page_init:false,//入库页是否有初始化过
  in_page_main:{
    a:{
      list:[{name:"白菜",click:false,num:0,icon:"/static/sprites/input_ice_icon.png"},
      {name:"白菜2",click:false,num:0,icon:"/static/sprites/input_ice_icon.png"},
      {name:"白菜3",click:false,num:0,icon:"/static/sprites/input_ice_icon.png"},
      {name:"白菜4",click:false,num:0,icon:"/static/sprites/input_ice_icon.png"}
      ],
      name:"a"
    }
  },//入库页面main
  pre_bottom_click:1,
  Loading_show:true,
  in_list_show:false
}
export default new Vuex.Store({
  state,
  getters,
  actions,
  mutations
})
